package com.weds.frame.common.annotation;

import com.weds.frame.common.validator.SearchOrderByValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 09:14
 */
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {SearchOrderByValidator.class})
public @interface SearchOrderByValid {
    String message() default "排序字段不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
